<template>
  <div>
    <header>
        <slot name="header"></slot>
    </header>
    <main>
        <slot name="main"></slot>
        <!-- <slot>我是main中的默认插槽</slot> -->
    </main>
    <footer>
        <slot name="footer" :user="user"></slot>
    </footer>
  </div>
</template>

<script>
export default {
  data () {
    return {
      user: {
        firstname: 'pp'
      }
    }
  }
}
</script>

<style>

</style>
